import request from '@/utils/request'

// 查询投诉 待发货 待售后数据
export function getProductWarning(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getProductWarning',
    method: 'get',
    params: query
  })
}


// 查询"查询总单数、总金额、交易单数、交易金额
export function getOrderCollect(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderCollect',
    method: 'get',
    params: query
  })
}

// 取消单数、取消金额、未支付单数、未支付金额
export function getOrderUnfinishedCollect(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderUnfinishedCollect',
    method: 'get',
    params: query
  })
}

// 售后单数、投诉单数、买家数量、成交卖家数、取消卖家数
export function getOrderAfterSaleCollect(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderAfterSaleCollect',
    method: 'get',
    params: query
  })
}
// 查询当天支付金额 支付买家数
export function getOrderTodayCollect(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderTodayCollect',
    method: 'get',
    params: query
  })
}

//  查询当天 、 昨日24小时内支付金额
export function getOrderTodayMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderTodayMap',
    method: 'get',
    params: query
  })
}

// 总金额 总单数 成交金额 成交单数 与前相同天数进行对比数据
export function getOrderMoneyCollect(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderMoneyCollect',
    method: 'get',
    params: query
  })
}

// 查询近一月总金额图
export function getOrderMoneyTotalMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderMoneyTotalMap',
    method: 'get',
    params: query
  })
}

// 查询近一月总订单数图
export function getOrderTotalMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderTotalMap',
    method: 'get',
    params: query
  })
}

// 查询近一月成交金额图
export function getMakeOrderMoneyTotalMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getMakeOrderMoneyTotalMap',
    method: 'get',
    params: query
  })
}

// 查询近一月成交金额图
export function getMakeOrderTotalMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getMakeOrderTotalMap',
    method: 'get',
    params: query
  })
}

// 查询近一月成交金额图
export function getCancelMoney(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getCancelMoney',
    method: 'get',
    params: query
  })
}


// 查询近一月订单图表
export function getOrderMap(query) {
  return request({
    url: '/prod-api/centre-data/count/order/getOrderMap',
    method: 'get',
    params: query
  })
}
